package ar.com.vates.hilos2;

public class HiloBorrar implements Runnable {

	Contenedor cont;

	public HiloBorrar(Contenedor c) {
		cont = c;
	}

	@Override
	public void run() {

		try {
			borrar();
		} catch (Exception e) {
			System.out.println("Error de borrado");
		}
	}

	public void borrar() {
		cont.setVar(0);
	}

}
